
$(function(){
	var state = $("input[name='retStateVal2']").val();
	if(state!=4){
		$("#ret_fee_id2").hide();
	}
});
function showRetFee2(state){
	$("input[name='retStateVal2']").val(state);
	if(state==4){
		$("#ret_fee_id2").show();
	}else{
		$("#ret_fee_id2").hide();
	}
}

function subRetHand2(){
	$("#wait_return_operator_form").form('submit', {    
		url:'customer/return_business/subHand.do',   
	    onSubmit: function(){//发送前操作
	    	if($("input[name='retStateVal2']").val()!=4){
	    		return true;
	    	}
	    	var isValid = $(this).form('validate');
			return isValid;	// 返回false终止表单提交
	    },    
	    success:function(data) {
	    	var data = eval('(' + data + ')');  
		        if(data.success == true){
		        	$.messager.alert('提示','<strong><center>'+data.msg+'</center></strong>');
		        	$("#wait_ret_hand_dialog").dialog('close');
		        }else{    
		        	$.messager.alert('警告','<strong><center>'+data.msg+'</center></strong>');    
		        }
	    }  
});  
}
